package org.needcoke.hs.mp.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@TableName("t_hs_single_url")
@EqualsAndHashCode(callSuper = true)
public class SingleUrl extends BaseConfig{

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "use_config_name")
    private String useConfigName;

    @TableField(exist = false)
    private InterceptRule interceptRule;

    /**
     * 协议,目前仅支持http/https
     */
    @TableField(value = "intercept_rule_agreement")
    private String agreement;

    /**
     * ip  / 域名
     */
    @TableField(value = "intercept_rule_host")
    private String host;

    /**
     * 端口
     */
    @TableField(value = "intercept_rule_port")
    private String port;

    /**
     * 路径
     */
    @TableField(value = "intercept_rule_path")
    private String path;

}
